package cn.jlkj2012.csmall.product.teacher.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
public class AttributeTemplateAddNewDTO {
    @ApiModelProperty(value = "属性名称", required = true)
    @NotNull(message = "添加属性失败，必须提交属性名称！")
    private String name;
    private String pinyin;
    private String keywords;
    @ApiModelProperty(value = "排序序号", required = true)
    @Range(max = 255, message = "添加品牌失败，排序序号必须是0~255之间的值！")
    private Integer sort;
}
